package com.miko.pojo;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@Entity//springboot标记为实体类
@Table(name = "tb_user")//绑定数据库表名，库名已经在yml中配置
public class User {
    @Id//绑定主键
    private Integer id;
    private String name;
    private String gender;
    private Integer age;
    private String address;
    private String qq;
    private String email;
    private String username;
    private String phone;

}
